package cn.scau.server.service;

import cn.scau.server.pojo.Notification;
import cn.scau.server.vo.ResultVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 代码不跑我先跑
 * @since 2025-03-30
 */
public interface NotificationService extends IService<Notification> {
    // 根据消息id查找消息
    public ResultVO<Notification> getMessageById(Integer id);
    //修改未读为已读
    public ResultVO changeIsReadById(Integer id);
    //根据员工编号查找所有消息
    public ResultVO<List<Notification>> getMessageByEmpId(String id);
    // 判断员工是否有未读消息
    public ResultVO checkUnreadMessages(String id);
}
